package com.powernode.proxy.client;

import com.powernode.proxy.service.OrderService;
import com.powernode.proxy.service.OrderServiceImpl;
import com.powernode.proxy.util.ProxyUtil;

public class Cilent {

    public static void main(String[] args) {
        OrderService target =new OrderServiceImpl();


        //
        OrderService proxyObj =(OrderService) ProxyUtil.newProxynewInstance(target);
        proxyObj.generate();
        String name = proxyObj.getName();
        System.out.println(name);
    }
}
